package com.shopoo.dto.cqe;

import com.shopoo.dto.Query;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import lombok.Data;

/**
 * @Description:
 * @Auther: limy66
 * @Date: 2021/05/12/13:50
 */
@Data
@Tag(name = "角色请求实体")
public class RoleQuery extends Query {

    @Schema(title = "角色ID")
    private Long roleId;

    @Schema(title = "角色名称")
    private String name;

    @Schema(title = "角色备注")
    private String remark;

    @Schema(title = "当前页码")
    @Min(value = 1, message = "当前页码大小不能小于1")
    private Integer pageNum;

    @Schema(title = "每页大小")
    @Min(value = 1, message = "每页大小不能小于1")
    @Max(value = 1000, message = "每页大小不能大于1000")
    private Integer pageSize;
}
